//
//  NewsShowTableViewCell.m
//  MedicalTip
//
//  Created by 徐潇 on 15/4/14.
//  Copyright (c) 2015年 徐潇. All rights reserved.
//

#import "NewsShowTableViewCell.h"

@implementation NewsShowTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubviews];
    }
    return self;
}
- (void)createSubviews
{
    self.newsImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 4, 100, 62)];
    self.newsImageView.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:self.newsImageView];
    [_newsImageView release];
    
    self.newsLable = [[UILabel alloc] initWithFrame:CGRectMake(108, 2, 262, 25)];
    self.newsLable.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:self.newsLable];
    [_newsLable release];
    self.classLable = [[UILabel alloc] initWithFrame:CGRectMake(108, 28, 100, 20)];
    self.classLable.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:self.classLable];
    [_classLable release];
    
    self.timeLable = [[UILabel alloc] initWithFrame:CGRectMake(108, 49, 200, 20)];
    self.timeLable.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:self.timeLable];
    [_timeLable release];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
